package testExamples;
import java.net.*;
import java.io.*;

class Cliente {
    public static void main( String args[] ) throws IOException {
        Socket s;
        OutputStream s1out;
        String cadena=new String("\nHOLA MUNDO STREAM\n");
        //long longCad;
        //s = new Socket( "180.53.8.160",27895 );
        s = new Socket( "localhost" , 3244 );
        s1out = s.getOutputStream();
        DataOutputStream cadenaStrim= new DataOutputStream(s1out);
        cadenaStrim.writeUTF(cadena);
      /*  longCad = cadena.length();
        for( int i=0; i < longCad; i++ )
            s1out.write( (int)cadena.charAt( i ) );*/
        s.close();
        }
    }